﻿using System.Threading;

namespace InheritanceVsCoupling
{
    class VacationService
    {
        private readonly ILogger _logger;

        public VacationService(ILogger logger)
        {
            _logger = logger;
        }

        public int CalculateDaysLeft(string username)
        {
            _logger.Log("CalculateDaysLeft Start");
            //Magic
            Thread.Sleep(2000);
            _logger.Log("CalculateDaysLeft Finish");
            return 0;
        }
    }
}